<template>
  <div class="showConceptList">
    <ul class="conceptImg">
      <div class="fill"></div>
      <img :src="info.img_src" :height="imgHeight">
    </ul>
    <div class="content" :style="'width:'+(imgWidth-20)+'px'">
      <ul>
        <li class="title">{{info.title}}</li>
        <li class="line">-------</li>
        <li class="subContent">{{info.content}}</li>
      </ul>
    </div>
  </div>
</template>

<script>
    export default {
        name: "brandStoryContent",
      methods:{
        getImgWidth(){
          this.imgHeight=200;
          this.imgWidth=document.body.clientWidth;
        }
      },
      data(){
        return{
          imgHeight:0,
          imgWidth:0,
        }
      },
      props:{
        info:{},
      },
      created(){
        this.getImgWidth()
      }
    }
</script>

<style scoped>
  .showConceptList{
    position: relative;
    box-sizing: border-box;
  }
  .conceptImg{
    width:100%;
    height:auto;
    font-size: 0;
    background: #000;
  }
  .conceptImg img{
    display: block;
    z-index: 10;
    opacity: 0.5;
    background-size:auto 130%
  }
  .content{
    position:absolute;
    color:#FFF;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
  }
  .content ul{
    width:100%;
    letter-spacing: 2px;
  }
  .content .title{
    font-size:15px;
  }
  .content .line{
    letter-spacing: -1px;
    font-size:17px;
  }
  .content .subContent{
    font-size: 11px;
    font-weight: lighter;
    padding-right: 10px;
    padding-left: 10px;
  }
  .fill{
    position: absolute;
    width:10px;
    height:200px;
    margin-top: 0px;
    margin-right: -10px;
    z-index: 2500;
    background: #f5f5f5;
    opacity:1;
    right:0;
  }
  .fill:after{
    clear: both;
  }
</style>
